import { Module,forwardRef } from '@nestjs/common';
import { CheckService } from './check.service';
import { CheckController } from './check.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Check } from 'src/entities/check.entity'
import { CommonModule } from 'src/common/common.module';
import { UserModule } from '../user/user.module';

@Module({
  imports:[
    TypeOrmModule.forFeature([Check]), 
    CommonModule,
    forwardRef(() => UserModule),// 处理相互循环依赖
  ],
  controllers: [CheckController],
  providers: [CheckService],
})
export class CheckModule {}
